const {lib} = ao2
import {backtop} from '../_common/utils'

let data = []
for (let i =0; i < 70; i++) {
  data.push({title: 'saui'})
}
function template(state, props) {
  // let md = requireMarkdown(state.file)
  let mdContent = ui_item({
    title: {title: '返回顶部', itemClass: 'pages-title-lg'},
    body: data,
    dot: [{
      title: ' ',
      itemClass: 'ss-backtop icon-arrow_up'
    }]
  })
  return <mdContent.UI />
}

export default function(Pager) {
  return Pager({
    template,

    data: {
      file: 'readme.md'
    },
    onReady(){
      backtop()
    }
  })
}